package Main;

import Utils.MiscUtils;
import datatypes.film.Films;
import datatypes.film.filmActors;
import datatypes.film.filmDirectors;
import datatypes.film.filmGenres;
import datatypes.film.filmRoles;
import datatypes.film.filmWriters;
import datatypes.tv.tvActors;
import datatypes.tv.tvGenres;
import datatypes.tv.tvGuestRoles;
import datatypes.tv.tvProgramCreators;
import datatypes.tv.tvPrograms;
import datatypes.tv.tvStarringRoles;

public class Main {

	/* ------ for puchon and yossef ----------- */

	public static void main(String[] args) {

		// Initialize settings for application
		MiscUtils.prepareProgram();

		// all database types are at the datatypes package
		// all main loading function are at the LoadingCenter (in Utils package)

		// all freebase schema is at: http://www.freebase.com/schema/

		// load tv actors
		tvActors tv_actors = Utils.LoadingCenter.Load_tvActors();
		System.out.println(tv_actors.getActors().size());

		// load tv starring roles
		tvStarringRoles tv_starring_roles = Utils.LoadingCenter
				.Load_tvStarringRoles();
		System.out.println(tv_starring_roles.gettvStarringRoles().size());

		// load tv guest roles
		tvGuestRoles tv_guest_roles = Utils.LoadingCenter.Load_tvGuestRoles();
		System.out.println(tv_guest_roles.gettvGuestRoles().size());

		// load tv programs
		tvPrograms tv_programs = Utils.LoadingCenter.Load_tvPrograms();
		System.out.println(tv_programs.getPrograms().size());

		// load program creators
		tvProgramCreators tv_program_creators = Utils.LoadingCenter
				.Load_tvProgramCreators();
		System.out.println(tv_program_creators.getProgramCreators().size());

		// load tv genres
		tvGenres tv_genres = Utils.LoadingCenter.Load_tvGenres();
		System.out.println(tv_genres.getGenres().size());

		// load films
		Films films = Utils.LoadingCenter.Load_Films();
		System.out.println(films.getFilms().size());

		// load film actors
		filmActors film_actors = Utils.LoadingCenter.Load_filmActors();
		System.out.println(film_actors.getFilmActors().size());

		// load film directors
		filmDirectors film_directors = Utils.LoadingCenter.Load_filmDirectors();
		System.out.println(film_directors.getfilmDirectors().size());

		// load film writers
		filmWriters film_writers = Utils.LoadingCenter.Load_filmWriters();
		System.out.println(film_writers.getfilmWriters().size());

		// load film roles
		filmRoles film_roles = Utils.LoadingCenter.Load_filmRoles();
		System.out.println(film_roles.getfilmRoles().size());
		
		// load film genres
		filmGenres film_genres = Utils.LoadingCenter.Load_filmGenres();
		System.out.println(film_genres.getGenres().size());
		

	}

}
